package com.coldchain.admin.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.coldchain.common.enums.AccountStatusEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author fangliai
 * @since 2018-09-11
 */
@TableName("ch_company_account")
public class CompanyAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
	private String accountId;
    /**
     * 企业名称
     */
	@TableField("companyId")
	private String companyId;
    /**
     * 帐户名称
     */
	@TableField("accountName")
	private String accountName;
    /**
     * 手机号码
     */
	@TableField("accountPhone")
	private String accountPhone;
	private String email;
    /**
     * 头像
     */
	private String profile;
	private String password;
    /**
     * 状态 0禁用 1启用
     */
	@TableField("status")
    @EnumValue
	private AccountStatusEnum status;
    /**
     * 角色
     */
	private String roles;
	@TableField("createTime")
	private Date createTime;
	@TableField("createBy")
	private String createBy;


	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getAccountPhone() {
		return accountPhone;
	}

	public void setAccountPhone(String accountPhone) {
		this.accountPhone = accountPhone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getProfile() {
		return profile;
	}

	public void setProfile(String profile) {
		this.profile = profile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public AccountStatusEnum getStatus() {
		return status;
	}

	public void setStatus(AccountStatusEnum status) {
		this.status = status;
	}

	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

}
